<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.min.js"></script>

    <script>
        $.ajax({
           type: 'post',
           url: 'JsonPost',
           success: function(body){
                console.log('Json构造的Post请求!');
           },
           error: function(){
            console.log("构造请求失败!");
           }
        });
    </script>

</body>
</html>